package com.shiguiwu.springboot3.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @description: 聊天请求
 * @author: stone
 * @date: Created by 2025/10/19 15:48
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.dto.request
 *
 * {
 *   "type": "CHAT", // 类型：CHAT-聊天消息，SYS-系统通知，PING/PONG-心跳
 *   "senderId": "user123",
 *   "receiverId": "cs_agent_456",
 *   "content": "你好，我想咨询一下订单问题。",
 *   "timestamp": 1730488320000,
 *   "sessionId": "sess_abc789"
 * }
 */
@Schema(description = "聊天请求实体")
@Data
public class ChatMessageReq {

    @Schema(description = "聊天信息", example = "你好~")
    private String message;

    @Schema(description = "聊天时间戳", example = "1730488320000")
    private Long timestamp;

    @Schema(description = "会话id", example = "1222")
    private Long sessionId;

    @Schema(description = "消息类型：CHAT-聊天消息，SYS-系统通知，PING/PONG-心跳", example = "CHAT")
    private String type;// 类型：CHATBOT-机器人 CHAT-聊天消息，SYS-系统通知，PING/PONG-心跳

    @Schema(description = "接收方id", example = "2")
    private Long receiverId;

    @Schema(description = "发送方id", example = "2")
    private Long senderId;


}
